package com.wonders.common.ws.entity.vo;

import com.wonders.common.ws.mapping.bean.global.Head;
import com.wonders.framework.entity.vo.BaseVo;

/**
 * 协同平台数据
 * 
 * @author WuBin
 * 
 */
public class XtptMsg extends BaseVo {

	/**
	 * 接口调用是否成功
	 */
	private boolean success = false;

	/**
	 * 交易返回码
	 */
	private String tradeCode;

	/**
	 * 业务返回码
	 */
	private String busiCode;

	/**
	 * 返回信息
	 */
	private String info;

	/**
	 * 报文头字符
	 */
	private String headXml;

	/**
	 * 报文头
	 */
	private Head head;

	/**
	 * 报文体字符
	 */
	private String bodyXml;

	/**
	 * 报文体
	 */
	private Object body;
	
	/**
	 * 报文
	 */
	private String xml;

	public boolean isSuccess() {
		return success;
	}

	public String getTradeCode() {
		return tradeCode;
	}

	public String getBusiCode() {
		return busiCode;
	}

	public String getInfo() {
		return info;
	}

	public String getHeadXml() {
		return headXml;
	}

	public Head getHead() {
		return head;
	}

	public String getBodyXml() {
		return bodyXml;
	}

	public Object getBody() {
		return body;
	}

	public void setSuccess(boolean success) {
		this.success = success;
	}

	public void setTradeCode(String tradeCode) {
		this.tradeCode = tradeCode;
	}

	public void setBusiCode(String busiCode) {
		this.busiCode = busiCode;
	}

	public void setInfo(String info) {
		this.info = info;
	}

	public void setHeadXml(String headXml) {
		this.headXml = headXml;
	}

	public void setHead(Head head) {
		this.head = head;
	}

	public void setBodyXml(String bodyXml) {
		this.bodyXml = bodyXml;
	}

	public void setBody(Object body) {
		this.body = body;
	}

	public String getXml() {
		return xml;
	}

	public void setXml(String xml) {
		this.xml = xml;
	}

	@Override
	public String toString() {
		return "XtptMsg [success=" + success + ", tradeCode=" + tradeCode
				+ ", busiCode=" + busiCode + ", info=" + info + ", headXml="
				+ headXml + ", head=" + head + ", bodyXml=" + bodyXml
				+ ", body=" + body + ", xml=" + xml + "]";
	}

}
